Skip to content

Add v1/tracks/latest endpoint#749

Merged
raymondjacobson merged 2 commits intomainfrom
feat/v1-tracks-latest
Apr 1, 2026
Merged

Add v1/tracks/latest endpoint#749
raymondjacobson merged 2 commits intomainfrom
feat/v1-tracks-latest

Conversation

@raymondjacobson
Copy link
Copy Markdown
Member

Summary

  • Adds GET /v1/tracks/latest endpoint that returns tracks ordered by created_at DESC
  • Supports genre, limit, and offset query parameters
  • Filters out deleted, unlisted, and unavailable tracks
  • Processes tracks through the standard enrichment pipeline (dbv1.Tracks)
  • Includes 4 tests (default, genre filter, limit/offset pagination, unlisted exclusion) with dedicated fixtures
  • Updates swagger-v1.yaml with the new endpoint definition

Test plan

  • TestGetLatest — returns tracks ordered by creation date
  • TestGetLatestWithGenre — filters by genre correctly
  • TestGetLatestWithLimitOffset — pagination works
  • TestGetLatestExcludesUnlisted — hidden/unlisted tracks are excluded
  • Existing trending tests still pass

🤖 Generated with Claude Code

raymondjacobson and others added 2 commits March 31, 2026 18:21
Queries tracks ordered by created_at DESC with genre filtering,
limit/offset pagination, and hidden/unlisted track exclusion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@raymondjacobson raymondjacobson merged commit d32e484 into main Apr 1, 2026
5 checks passed
@raymondjacobson raymondjacobson deleted the feat/v1-tracks-latest branch April 1, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant